<template>
  <div class="header">
    <div class="header-main">
      <div class="left">
        <!-- 首页 -->
        <div>
         <!-- <i class="el-icon-s-home"></i>首页 -->
         <router-link :to="{ path: '/'}"><i class="el-icon-s-home"></i>首页</router-link>
        </div>
        <!-- 首页 end -->
        <!-- 后台 -->
        <div>
          <router-link :to="{ path: '/admin'}">后台入口</router-link>
        </div>
        <!-- 后台 -->
        <div>
          <router-link :to="{ path: '/login'}">请登录</router-link>
        </div>
        <!-- 登录 end -->
        <!-- 注册 -->
        <div>
          <router-link :to="{ path: '/register'}">免费注册</router-link>
        </div>
        <!-- 注册 end -->
        <!-- 用户 -->
        <div>
          <router-link :to="{ path: '/user'}">username</router-link>
        </div>
        <!-- 用户 end -->
        <!-- 退出 -->
        <div>
          退出
        </div>
        <!-- 退出 end -->

      </div>
      <div class="right">
        <!-- 我的订单 -->
        <div>
          <router-link :to="{ path: '/user'}">我的订单</router-link>
        </div>
        <!-- 我的订单 end -->
        <!-- 购物车 -->
        <div>
          <router-link :to="{ path: '/user'}"><i class="el-icon-shopping-cart-1"></i> 购物车</router-link>
        </div>
        <!-- 购物车 end -->
      </div>


    </div>
  </div>
</template>

<script>
  export default{
    name:'MainHeader',
    data() {
      return {

      }
    },
  }
</script>

<style scoped>
  .header{
    width: 100%;
    height: 30px;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #e7e7e7;
    background-color: #f2f2f2;
    line-height: 30px;
  }
  .header-main{
    width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
  }
  .header-main>div>div{
    font-size: 12px;
    color: rgb(153,153,153);
    cursor: pointer;
    display: inline-block;
  }
  .header-main  i{
    color: #C40000;
    margin-right: 5px;
  }
  .header-main>div>div:hover{
    color: #C40000;
  }
  .header-main>div>div>a{
    font-size: 12px;
    color: rgb(153,153,153);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    padding: 0 10px;
  }
  .header-main>div>div>a:hover{
    color: #C40000;
  }
</style>
